<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Environment</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (E)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span>
     &raquo; 
    <span class="title">Environment</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Environment 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName">Object</span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next">Sass::Environment</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/environment.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>The lexical environment for SassScript. This keeps track of variable, mixin, and function definitions.</p>

<p>A new environment is created for each level of Sass nesting. This allows variables to be lexically scoped. The new environment refers to the environment in the upper scope, so it has access to variables defined in enclosing scopes, but new variables are defined locally.</p>

<p>Environment also keeps track of the <tt><a href="Engine.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html" title="Sass::Engine (class)">Engine</a></tt> options so that they can be made available to <tt><a href="Functions.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html" title="Sass::Script::Functions (module)">Sass::Script::Functions</a></tt>.</p>

  </div>
</div>
<div class="tags">
  
</div>

  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#caller-instance_method" title="#caller (instance method)">- (Environment?) <strong>caller</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The environment of the caller of this environment&#8217;s mixin or function.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#content-instance_method" title="#content (instance method)">- (Environment?) <strong>content</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The content passed to this environmnet.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#options-instance_method" title="#options (instance method)">- <strong>options</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">Returns the value of attribute options.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#parent-instance_method" title="#parent (instance method)">- (Environment) <strong>parent</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">The enclosing environment, or nil if this is the global environment.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#function-instance_method" title="#function (instance method)">- (Sass::Callable) <strong>function</strong>(name) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Gets a function from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (Environment) <strong>initialize</strong>(parent = nil, options = nil) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of Environment.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#mixin-instance_method" title="#mixin (instance method)">- (Sass::Callable) <strong>mixin</strong>(name) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Gets a mixin from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_function-instance_method" title="#set_function (instance method)">- (Sass::Callable) <strong>set_function</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a function in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_local_function-instance_method" title="#set_local_function (instance method)">- (Sass::Callable) <strong>set_local_function</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a function in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_local_mixin-instance_method" title="#set_local_mixin (instance method)">- (Sass::Callable) <strong>set_local_mixin</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a mixin in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_local_var-instance_method" title="#set_local_var (instance method)">- (Script::Literal) <strong>set_local_var</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a variable in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_mixin-instance_method" title="#set_mixin (instance method)">- (Sass::Callable) <strong>set_mixin</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a mixin in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#set_var-instance_method" title="#set_var (instance method)">- (Script::Literal) <strong>set_var</strong>(name, value) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets a variable in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#var-instance_method" title="#var (instance method)">- (Script::Literal) <strong>var</strong>(name) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Gets a variable from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</span>
  
</li>

    
  </ul>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Environment (class)">Environment</a></tt>) <strong>initialize</strong>(parent = nil, options = nil) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of Environment</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
        <em class="default">(defaults to: <tt>nil</tt>)</em>
      
      
        &mdash;
        The options hash. See <a href="file.SASS_REFERENCE.html#sass_options" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#sass_options" title="the Sass options documentation">the Sass options documentation</a>.
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Environment (class)">Environment</a></tt>)</span>
      
      
        <span class='name'>parent</span>
      
      
        <em class="default">(defaults to: <tt>nil</tt>)</em>
      
      
        &mdash;
        See <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


28
29
30
31</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 28</span>

def initialize(parent = nil, options = nil)
  @parent = parent
  @options = options || (parent && parent.options) || {}
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="caller=-instance_method"></span>
      <span id="caller-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="caller-instance_method">
  
    - (<tt><a href="" title="Sass::Environment (class)">Environment</a>?</tt>) <strong>caller</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The environment of the caller of this environment&#8217;s mixin or function.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Environment (class)">Environment</a>?</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


35
36
37</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 35</span>

def caller
  @caller || (@parent && @parent.caller)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="content=-instance_method"></span>
      <span id="content-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="content-instance_method">
  
    - (<tt><a href="" title="Sass::Environment (class)">Environment</a>?</tt>) <strong>content</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The content passed to this environmnet. This is naturally only set for mixin body environments with content passed in.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Environment (class)">Environment</a>?</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


42
43
44</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 42</span>

def content
  @content || (@parent && @parent.content)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="options-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="options-instance_method">
  
    - <strong>options</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the value of attribute options</p>

  </div>
</div>
<div class="tags">
  
</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


21
22
23</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 21</span>

def options
  @options
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id=""></span>
      <span id="parent-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="parent-instance_method">
  
    - (<tt><a href="" title="Sass::Environment (class)">Environment</a></tt>) <strong>parent</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The enclosing environment, or nil if this is the global environment.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Environment (class)">Environment</a></tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


20
21
22</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 20</span>

def parent
  @parent
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="function-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>function</strong>(name) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Gets a function from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the function
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        The function value
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


100</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 100</span>

inherited_hash :function</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="mixin-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>mixin</strong>(name) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Gets a mixin from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the mixin
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        The mixin value
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


97</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 97</span>

inherited_hash :mixin</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_function-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>set_function</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a function in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s. If the function is already defined in some environment, that one is set; otherwise, a new one is created in this environment.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the function
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the function
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


100</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 100</span>

inherited_hash :function</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_local_function-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>set_local_function</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a function in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>. Ignores any parent environments.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the function
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the function
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


100</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 100</span>

inherited_hash :function</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_local_mixin-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>set_local_mixin</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a mixin in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>. Ignores any parent environments.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the mixin
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the mixin
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


97</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 97</span>

inherited_hash :mixin</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_local_var-instance_method">
  
    - (<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>) <strong>set_local_var</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a variable in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt>. Ignores any parent environments.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the variable
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the variable
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


94</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 94</span>

inherited_hash :var</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_mixin-instance_method">
  
    - (<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>) <strong>set_mixin</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a mixin in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s. If the mixin is already defined in some environment, that one is set; otherwise, a new one is created in this environment.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the mixin
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the mixin
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Callable.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Callable.html" title="Sass::Callable (class)">Sass::Callable</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


97</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 97</span>

inherited_hash :mixin</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="set_var-instance_method">
  
    - (<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>) <strong>set_var</strong>(name, value) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets a variable in this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s. If the variable is already defined in some environment, that one is set; otherwise, a new one is created in this environment.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the variable
      
    </li>
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>)</span>
      
      
        <span class='name'>value</span>
      
      
      
        &mdash;
        The value of the variable
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>)</span>
      
      
      
      
        &mdash;
        <code>value</code>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


94</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 94</span>

inherited_hash :var</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="var-instance_method">
  
    - (<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>) <strong>var</strong>(name) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Gets a variable from this <tt><a href="" title="Sass::Environment (class)">Environment</a></tt> or one of its <tt><a href="#parent-instance_method" title="Sass::Environment#parent (method)">#parent</a></tt>s.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>name</span>
      
      
      
        &mdash;
        The name of the variable
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="Literal.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Script/Literal.html" title="Sass::Script::Literal (class)">Script::Literal</a></tt>)</span>
      
      
      
      
        &mdash;
        The variable value
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


94</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/environment.rb', line 94</span>

inherited_hash :var</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:37 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>